// 转换图片相对路径至服务器绝对路径
export const turnPath = (path: string = null) => {
  if (!path || path.length == 0) return null;
  if (path.indexOf("http") === 0) {
    return path;
  }
  console.log(import.meta.env.VITE_SERVER_DOMAIN + path);
  return import.meta.env.VITE_SERVER_DOMAIN + path;
};
